// import { getCurrentInstance, ComponentInternalInstance } from "vue";
import { getCurrentInstance } from "vue";

// 通过 getCurrentInstance 方法获取当前组件实例
export default function instance() {
    // const { proxy, appContext } = getCurrentInstance() as ComponentInternalInstance
    console.log('getCurrentInstance()==', getCurrentInstance())
    const { proxy, appContext } = getCurrentInstance()
    const global = appContext.config.globalProperties
    return {
        proxy,
        global
    }
}